package org.x.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import org.x.user.entity.*;

import java.util.List;

@Data
public class UserVO {

    SysUsers user;

    @Schema(description = "角色列表")
    private List<SysRole> roles;

    @Schema(description = "权限列表")
    private List<SysPerm> permissions;

    @Schema(description = "部门列表")
    private List<SysDept> allDepts;

    @Schema(description = "菜单列表")
    // 新增菜单树结构
    private List<MenuNode> menuTree;

    @Data
    @Accessors(chain = true)
    public static class MenuNode {
        private SysMenu menu;
        private List<MenuNode> children;
    }

}
